{% extends "homepage\base_generic.html" %}
{% block content %}
   <h1>Trip Homepage for: {{Event.eventName}} </h1>

<h3>Actions for this event:</h3>
<li><a href="/CostCalc/{{Event.id}}/SetPeopleOnEvent/">Edit attendees</a></li>
<li><a href="/CostCalc/{{Event.id}}/{{User.id}}/SetDatesOnEvent/"Edit dates on event""</a></li>
<li><a href="/CostCalc/{{Event.id}}/AddTripExpense/">Create a new trip expense</a></li>
<li><a href="/CostCalc/userhomepage/">Back to my homepage</a></li>

<br>
<h3> Expenses logged so far:</h3>
    {% for Expense in EventExpenses %}
        <li><a href="/CostCalc/{{Event.id}}/{{ Expense.id }}/ViewTripExpense">{{ Expense }}</a></li>
    {% endfor %}
<br>
<h3> People who attended this event:</h3>
       <table>
        <tr><td>Attendee</td><td>Time spent on event</td><td>Attendee cost</td></tr>
        {% for Person in People %}
           <tr><td>{{Person}}</td><td>{{Person.userProportion}}</td><td>{{Event.GetTotalEventExpenses}}</td></tr>
    {% endfor %}
       </table>

        
    <p>Total cost of {{Event.eventName}}:  {{Event.GetTotalEventExpenses}} </p>
    {% endblock content %}






